package com.lv.LvRefundRatio.dao;
import com.aqgj.util.BaseDaoImpl;
import com.lv.LvRefundRatio.bean.LvRefundRatio;
import org.springframework.stereotype.Repository;
@Repository("LvRefundRatioDao")
public class LvRefundRatioDao extends BaseDaoImpl<LvRefundRatio> {
    /**
     * 修改
     * @param lvRefundRatio 实体bean
     * @return 0.失败，1.成功
     */
    public String update(LvRefundRatio lvRefundRatio) {
        this.getHibernateTemplate().saveOrUpdate(lvRefundRatio);
        if (lvRefundRatio.getId() != null) {
            return "1";
        }
        return "0";
    }
}